package Demo;

public class Demo15 {
    public static void main(String[] args) throws InterruptedException {
        MyBlockingQueue myBlockingQueue = new MyBlockingQueue();
        myBlockingQueue.put(1);
        myBlockingQueue.put(2);
        myBlockingQueue.put(3);
        myBlockingQueue.take();
        myBlockingQueue.take();
        myBlockingQueue.take();
        myBlockingQueue.take();
    }
}
